<template>
  <button style="color: red" @click="t">
    <slot></slot>
  </button>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      default: "按键默认内容",
    },
  },
  data() {
    return {};
  },
  methods: {
    t() {
      alert("666666");
    },
  },
};
</script>
<style>
</style>